﻿<UserControl x:Class="Demo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="600" d:DesignWidth="800">

    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                <GradientStop Color="#FF000000" Offset="0"/>
                <GradientStop Color="#FF000000" Offset="0.3"/>
                <GradientStop Color="#FF555555" Offset="0.75"/>
                <GradientStop Color="#FF000000" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBlock Name="Caption" Text="ThreeDWorld Demo" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20" Foreground="#FFFFFFFF" Grid.Row="0">
            <TextBlock.Effect>
                <DropShadowEffect BlurRadius="9" ShadowDepth="0" Color="#FFFFFFFF"/>
            </TextBlock.Effect>
        </TextBlock>
        <DrawingSurface Width="800" Height="600" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Center" Loaded="DrawingSurface_Loaded" Draw="DrawingSurface_Draw" Unloaded="DrawingSurface_Unloaded"></DrawingSurface>
    </Grid>
</UserControl>
